home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 427 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. From: johnw@jove.acs.unt.edu (John R. Williams)
  2. Message-ID: <4gd820$rc7@hermes.acs.unt.edu>
  3. X-Original-Date: 20 Feb 1996 19:39:44 GMT
  4. Path: in1.uu.net!bounce-back
  5. Date: 21 Feb 96 07:03:14 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: #ifdef XXXX
  9. Organization: University of North Texas
  10. References: <1996Feb1.092058.4745@iiasa.ac.at> <9602020740.22411@mulga.cs.mu.OZ.AU> <ARROUYE.96Feb18152057@marin.fdn.fr>
  11. X-Newsreader: TIN [version 1.2 PL2]
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMSrDv+EDnX0m9pzZAQGTfAF+PxLS8V6JjmYw8WWcmQOhqYJ7/GpAaDP6
  14.     5vxumJTrvrXShv0M3ZdtGBWwFHx7FTPt
  15.     =vTJr
  16.  
  17. Yves Arrouye (arrouye@marin.fdn.fr) wrote:
  18. > In article <4fukhs$fc3@hermes.acs.unt.edu> johnw@jove.acs.unt.edu
  19. > (John R. Williams) writes:
  20. >    Personally I'll continue to advocate "#once" to prevent multiple 
  21.  
  22. > So instead of adding yet another preprocessor directive, why not use
  23. > Objective C's #import which does exactly that? (I know this is also a
  24. > reason for *not* using it in order to make clear that the header file
  25. > is a C++ one, but I don't tjink it will be sooo confusing).
  26.  
  27. I don't follow. How does adding #import rather than #once prevent another 
  28. directive from being added to the language?
  29.  
  30. --
  31. class JohnWilliams : public Student, public Programmer {
  32. public:
  33.   string operator&() const { return "johnw@jove.acs.unt.edu"; }
  34.   string homepage () const { return "http://www.unt.edu/~johnw"; }
  35. };
  36. ---
  37. [ To submit articles: try just posting with your news-reader.
  38.                       If that fails, use mailto:std-c++@ncar.ucar.edu
  39.   FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  40.   Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  41.   Comments? mailto:std-c++-request@ncar.ucar.edu.
  42. ]
  43.